<%--
  Created by IntelliJ IDEA.
  User: baichuan
  Date: 2017/5/7
  Time: 18:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="http://www.w3school.com.cn/jquery/jquery-1.11.1.min.js"></script>

</head>
<body>

<div>
    <form action="api_1.0.0/com.ant.get">
        <input type="checkbox" name="bluebird" value="1#小强"/>小强
        <input type="checkbox" name="bluebird" value="2"/>小强
        <input type="checkbox" name="bluebird" value="3"/>小强
        <input type="checkbox" name="bluebird" value="4"/>小强
        <input type="checkbox" name="bluebird" value="5"/>小强


        <input type="hidden" name="bbs" id="bbs" value="@Model.bbs" />
        <script>
            $('input[type=checkbox]').change(function(){
                $('#bbs').val($('input[type=checkbox]:checked').map(function(){return this.value}).get().join(','))
            })
        </script>

        <button type="submit">submit</button>
    </form>
</div>

</body>
</html>
